
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看订单条目</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <el-form-item label="标识">
                            <span>{{ orderItem.EId }}</span>
                        </el-form-item>
                        <el-form-item label="名称">
                            <span>{{ orderItem.name }}</span>
                        </el-form-item>
                        <el-form-item label="订单编号">
                            <span>{{ orderItem.orderCode }}</span>
                        </el-form-item>
                        <el-form-item label="商品">
                            <span>{{ orderItem.goodsId }}</span>
                        </el-form-item>
                        <el-form-item label="商品">
                            <span>{{ orderItem.goodsName }}</span>
                        </el-form-item>
                        <el-form-item label="商品名称">
                            <span>{{ orderItem.goodName }}</span>
                        </el-form-item>
                        <el-form-item label="商品单价">
                            <span>{{ orderItem.goodPrice }}</span>
                        </el-form-item>
                        <el-form-item label="商品数量">
                            <span>{{ orderItem.goodAmount }}</span>
                        </el-form-item>
                        <el-form-item label="商品总价">
                            <span>{{ orderItem.totalPrice }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ orderItem.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ orderItem.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ orderItem.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ orderItem.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ orderItem.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {OrderItemService} from './OrderItemService';

export default {
    components: {
    },
    data() {
        return {
            orderItem:{},
        }
    },
    methods: {
        findOrderItemForView(orderItemId)//查找订单条目
        {
            OrderItemService.findOrderItemForView(orderItemId).then((resp) => {
                this.orderItem = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询订单条目出错'
        })
        })
        },
    },
    created() {
        const orderItemId = this.$route.params.orderItemId;
        this.findOrderItemForView(orderItemId);
    },
}

</script>
<style scoped lang="scss">

</style>
